package com.zhanjixun.weixin.demo;

import com.zhanjixun.weixin.Weixin;
import com.zhanjixun.weixin.domain.ContactMember;
import com.zhanjixun.weixin.utils.U;
import lombok.extern.log4j.Log4j;

/**
 * 好友删除检测
 *
 * @author :zhanjixun
 * @date : 2018/11/19 14:27
 */
@Log4j
public class WhoDelMe {

    public static void main(String[] args) {
        Weixin weixin = Weixin.getInstance();
        weixin.login();
        for (ContactMember member : weixin.getWxContact()) {
            String userName = member.getUserName();
            if (userName.startsWith("@")) {
                weixin.getMessenger().sendTextMsg(userName, "ॣॣॣॣॣॣॣॣॣ");
                U.sleep(500);
            }
        }
        System.exit(0);
    }
}
